package com.un.ebs.production.dto;

import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.un.ebs.production.enums.ProductionSeqTypeEnum;
import com.un.ebs.production.enums.QualityCheckPlanTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/7/6 16:39
 */
@Data
public class ProductionSeqItemDto {

    private String id;

    @NotNull(message = "请填写工序号。")
    private String code;

    @NotNull(message = "请填写工序名称。")
    private String name;

    @NotNull(message = "请指定执行角色。")
    private String roleId;

    @NotNull(message = "请指定采购类型。")
    private ProductPurchaseTypeEnum purchaseType;

    @NotNull(message = "请指定工序类型。")
    private ProductionSeqTypeEnum seqType;

    private QualityCheckPlanTypeEnum checkPlanType;

    private Integer checkPlanQty;

    @NotNull(message = "请填写标准工时。")
    private Integer workMinute;

    private String skuId;

    private Double userQty;

    private String remark;

    @NotNull(message = "所属工序集不能为空。")
    private String seqId;
}
